<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>设备效率查询</title>
</head>

<body>
	<table class="table	table-bordered">
			<c:if test="${map != null}">
			<thead>
				<tr>
					<th>设备编号</th>
					<th>工作时间(h)</th>
					<th>故障时间(h)</th>
					<th>工作效率(%)</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<th>${map["deviceNum"]}</th>
					<th>${map.worktime}</th>
					<th>${map.errortime}</th>
					<th>${map.effect}</th>
				</tr>
			</tbody>				
			</c:if>
		</table>
</body>
</html>